home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
scroll2a
/
scroll.frm
< prev
next >
Wrap
Text File
|
1999-09-18
|
3KB
|
92 lines
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
BackColor = &H80000012&
Caption = "Scroll by Scott Wellbrock"
ClientHeight = 4665
ClientLeft = 60
ClientTop = 345
ClientWidth = 5505
ClipControls = 0 'False
LinkTopic = "Form1"
ScaleHeight = 4665
ScaleWidth = 5505
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command3
Caption = "Diagonal"
Height = 375
Left = 120
TabIndex = 2
Top = 4080
Width = 1095
End
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 1
Left = 120
Top = 3240
End
Begin VB.CommandButton Command1
Caption = "Switch"
Height = 375
Left = 120
TabIndex = 1
Top = 3720
Width = 1095
End
Begin VB.Timer Timer1
Interval = 1
Left = 600
Top = 3240
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Scott Wellbrock"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
Left = 1320
TabIndex = 0
Top = 0
Width = 2415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command3_Click()
Timer1.Enabled = True
Timer2.Enabled = True
End Sub
Private Sub Command1_Click()
If Timer1.Enabled = True Then
Timer1.Enabled = False
Timer2.Enabled = True
Command1.Caption = "Vertical"
Else: Timer1.Enabled = True
Command1.Caption = "Horizontal"
Timer2.Enabled = False
End If
End Sub
Private Sub Form_Load()
Label1.Move -2300, 0
End Sub
Private Sub Timer1_Timer()
Label1.Left = Label1.Left + 20
If Label1.Left > Form1.Width Then Label1.Left = -2300
End Sub
Private Sub Timer2_Timer()
Label1.Top = Label1.Top + 20
If Label1.Top > Form1.Height Then Label1.Top = -10
End Sub